package drds.binlog.binlog_event;

import drds.binlog.common.Authors;
import drds.common.Author;
import lombok.Getter;
import lombok.Setter;

@Author(name = Authors.LI_YANG)
final class CharsetInfo
{

    @Setter
    @Getter
    protected final int charsetId;

    @Setter
    @Getter
    protected final String mysqlCharset;

    @Setter
    @Getter
    protected final String mysqlCollation;

    @Setter
    @Getter
    protected final String javaCharset;

    CharsetInfo(final int id, String mysqlCharset, // NL
                String mysqlCollation, String javaCharset)
    {
        this.charsetId = id;
        this.mysqlCharset = mysqlCharset;
        this.mysqlCollation = mysqlCollation;
        this.javaCharset = javaCharset;
    }
}
